﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Text.RegularExpressions;
using Interop = Microsoft.Office.Interop;
using DienLib.ReportLib;
using DienLib.PopUp;

namespace DienVu
{
    /// <summary>
    /// Interaction logic for PopUpWellType.xaml
    /// </summary>
    public partial class FarpacHelper : UserControl
    {

        private FarpacHelper()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Additional Method from User to Get Value back from PopUp
        /// </summary>
        /// <returns>String contain ShipTo Number</returns>
        public static void ShowDialog()
        {
            FarpacHelper popup = new FarpacHelper();
            Window window = new Window();
            window.Content = popup;
            window.SizeToContent = System.Windows.SizeToContent.WidthAndHeight;
            window.WindowStyle = System.Windows.WindowStyle.None;
            window.AllowsTransparency = true;
            window.Background = System.Windows.Media.Brushes.Transparent;
            window.Topmost = true;
            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            System.Media.SystemSounds.Beep.Play();
            window.ShowDialog(); // ShowDialog can be used Internal ? HA HA HA ! Any Side Effect ?
        }
    }
}
